/*
 * @Descripttion:
 * @version:
 * @Author: sueRimn
 * @Date: 2020-10-30 15:29:40
 * @LastEditors: sueRimn
 * @LastEditTime: 2020-11-17 17:57:00
 */
// const base = require('../../../env/index')
const URL = require('../router/trembleSchool')
import request from '@/utils/request'
import { addK_Token, checkHasID } from '../utils/index'
const base = require('../../../env/index')

export function get_Mechanism(data) {
    return request({
        url: '/admin_question_url' + checkHasID(URL.GET_MECHANISM, data),
        method: 'POST',
        headers: {},
        data: addK_Token(data)
    })
}

export function get_MechanismRoles(data) {
    return request({
        url: '/admin_question_url' + checkHasID(URL.GET_ROLES, data),
        method: 'POST',
        headers: {},
        data: addK_Token(data)
    })
}

export function edit_Mechanism(data) {
    return request({
        url: base.permission_url + checkHasID(URL.EDIT_USER, data),
        method: 'POST',
        headers: {},
        data: addK_Token(data)
    })
}
